package de.lns.entities.turrets;

import java.nio.FloatBuffer;

import de.lns.entities.mobs.Mob;
import de.lns.render.ModelFactory;


public class ImplosionShotTurret extends Turret {
	
	private static double radius = 20;
	private static String texturepath="entities/TurretImplosion.png";
	private static FloatBuffer mesh=ModelFactory.genRectMesh((float)radius*2, (float)radius*2);
	protected static int textureid;
	static{
		textureid = de.lns.render.TextureLoader.loadTexture(texturepath);
	}
	
    public ImplosionShotTurret(double posX, double posY) {
        super(posX, posY, 250, radius);
        setAttackspeed(4);
        setShotsPerAttack(1);
        setRangexy(200);
        setTexturepath(texturepath);
    }
    
    @Override
	public FloatBuffer getMesh(){
		return mesh;
	}
    public int getTextureID(){
    	return textureid;
    }

	@Override
	protected Bullet createShot(Mob mob) {
		Bullet bullet = new ImplosionShot(posX,posY,mob);
		return bullet;
	}
}